package edu.sctu.xiangkun.day201506.day20150603.TextThree;

/**
 * Created by lenovo on 2015/6/3.
 */
public class CTest implements Runnable{
    private String name;
    private int age;
    public CTest(String name,int age){
        this.name = name;
        this.age = age;
    }
    public void run(){
        if(age >= 18){
            for(int i = 1;i<4;i++) {
                System.out.println("姓名：" + name + "\t年龄：" + age);
            }
        }
    }

}
